package com.cjg.single;

public class demo01 {
    //饿汉式可能造成资源浪费
   private byte[] bytes =new byte[1024*1052];
    //直接初始化本类
    private final static demo01 DEMO_01=new demo01();
    //私用构造方法
    private demo01(){

    }
    //写一个公共方法可以调用
    public static demo01 getInstance(){
        return DEMO_01;
    }

}
